package com.feng.common.utils;

import com.feng.common.api.ResultCode;
import com.feng.common.exception.BaseException;

/**
 * 用于抛出自定义异常的断言工具类
 * @author Feng
 * @since 2022/4/18 10:22
 */
public class Asserts {

    public static void fail(ResultCode resultCode) {
        throw new BaseException(resultCode);
    }

    public static void fail(String msg) {
        throw new BaseException(msg);
    }

}
